<%--
  Created by IntelliJ IDEA.
  User: 86134
  Date: 2024/10/8
  Time: 15:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <link rel="stylesheet" href="css/style2.css">
</head>
<body>
<div class="container">
    <header>
        <nav>
            <div class="left-nav">
                    <span class="shipping-info">送货至:
                        <select>
                            <option value="sichuan">四川</option>
                            <option value="beijing">北京</option>
                            <option value="shanghai">上海</option>
                            <!-- 其他选项 -->
                        </select>
                    </span>
            </div>
            <div class="right-nav">
                <a href="#">你好，请登录</a>
                <a href="#">验证码登录 微信登录</a>
                <a href="#">免费注册</a>
            </div>
        </nav>
    </header>
    <div class="content">
        <table>
            <tr>
                <td align="left" valign="bottom" class="logo"><img src="img/logo.png" alt=""></td>
                <td></td>
            </tr>
            <tr>
                <td>
                    <aside>
                        <img src="img/l_img.png" alt="左侧图片">
                    </aside>
                </td>
                <td class="login-form">
                    <h1>注册</h1>
                    <% if (request.getParameter("error") != null) { %>
                    <p style="color: red;">两次输入的密码不一致！</p>
                    <% } %>
                    <form action="register" method="post">
                        <label for="account">账号:</label>
                        <input type="text" id="account" name="account"><br>
                        <label for="password">密码:</label>
                        <input type="password" id="password" name="password"><br>
                        <label for="confirmPassword">确认密码:</label>
                        <input type="password" id="confirmPassword" name="confirmPassword"><br>
                        <label for="nickname">昵称:</label>
                        <input type="text" id="nickname" name="nickname"><br>
                        <label for="gender">性别 (0: 女性, 1: 男性):</label>
                        <input type="text" id="gender" name="gender"><br>
                        <label for="idCard">身份证号:</label>
                        <input type="text" id="idCard" name="idCard"><br>
                        <label for="email">邮箱:</label>
                        <input type="text" id="email" name="email"><br>
                        <label for="phone">手机号:</label>
                        <input type="text" id="phone" name="phone"><br>
                        <label for="userType">用户类型 (0: 普通用户, 1: 管理员):</label>
                        <input type="text" id="userType" name="userType"><br>
                        <label for="openId">OpenID (可选):</label>
                        <input type="text" id="openId" name="openId"><br>
                        <button type="submit">注册</button>
                    </form>
                </td>
            </tr>
        </table>

    </div>
</div>
</body>
</html>

